package com.education.wisdom.mapper;


import com.education.wisdom.pojo.UserCatalogBuy;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用户购买课程 数据层
 *
 * @author ruoyi
 * @date 2019-05-27
 */
@Repository
public interface UserCatalogBuyMapper {

    UserCatalogBuy selectUserCatalogBuyByUserId(Map<String, Object> map);

    List<UserCatalogBuy> selectByUserId(Map<String, Object> map);

    int addUserCatalogBuy(List<UserCatalogBuy> list);

    void insert(UserCatalogBuy userCatalogBuy);

    Integer[] selectCatalogIdByUserId(Integer userId);

    void deleteByUserId(String userId);
}